import http from "@/utlis/http/http.js"
import env from '@/utlis/env.js';


//我的关注内容
export const interest = (data) => {
    return http({
        url: '/api/content.article/interest',
        method: 'GET', //请求方法
        data 
    })
}
//文章详情
export const detail = (data) => {
    return http({
        url: '/api/content.article/detail',
        method: 'GET', //请求方法
        data 
    })
}
//获取评论列表
export const remarkList = (data) => {
    return http({
        url: '/api/comments.remark/list',
        method: 'GET', //请求方法
        data 
    })
}
//关注某人
export const interestOne = (data) => {
    return http({
        url: '/api/auth.user/interestOne',
        method: 'POST', //请求方法
        data 
    })
}
//点赞文章
export const like = (data) => {
    return http({
        url: '/api/content.article/like',
        method: 'POST', //请求方法
        data 
    })
}
//取消点赞
export const cancelLike = (data) => {
    return http({
        url: '/api/content.article/cancelLike',
        method: 'POST', //请求方法
        data 
    })
}
//收藏
export const collect = (data) => {
    return http({
        url: '/api/content.article/collect',
        method: 'POST', //请求方法
        data 
    })
}
//取消收藏
export const cancelCollect = (data) => {
    return http({
        url: '/api/content.article/cancelCollect',
        method: 'POST', //请求方法
        data 
    })
}
//踩文章
export const stepArticle = (data) => {
    return http({
        url: '/api/content.article/stepArticle',
        method: 'POST', //请求方法
        data 
    })
}
//取消踩文章
export const cancelStepArticle = (data) => {
    return http({
        url: '/api/content.article/cancelStepArticle',
        method: 'POST', //请求方法
        data 
    })
}
//大厅内容
export const hallInfo = (data) => {
    return http({
        url: '/api/content.article/hallInfo',
        method: 'GET', //请求方法
        data 
    })
}
//取消关注
export const cancelInterest = (data) => {
    return http({
        url: '/api/auth.user/cancelInterest',
        method: 'POST', //请求方法
        data 
    })
}
//发布评论
export const publish = (data) => {
    return http({
        url: '/api/comments.remark/publish',
        method: 'POST', //请求方法
        data 
    })
}
//点赞评论
export const likeRemark = (data) => {
    return http({
        url: '/api/content.article/likeRemark',
        method: 'POST', //请求方法
        data 
    })
}
//取消点赞评论
export const cancelLikeRemark = (data) => {
    return http({
        url: '/api/content.article/cancelLikeRemark',
        method: 'POST', //请求方法
        data 
    })
}
//我的收藏
export const myCollect = (data) => {
    return http({
        url: '/api/auth.user/myCollect',
        method: 'GET', //请求方法
        data 
    })
}
//我的观看历史
export const lookHistory = (data) => {
    return http({
        url: '/api/auth.user/lookHistory',
        method: 'GET', //请求方法
        data 
    })
}
//我的喜欢
export const myLike = (data) => {
    return http({
        url: '/api/auth.user/myLike',
        method: 'GET', //请求方法
        data 
    })
}
//我发布的帖子
export const myPost = (data) => {
    return http({
        url: '/api/auth.user/myPost',
        method: 'GET', //请求方法
        data 
    })
}
// 添加历史记录
export const addHistory = (data) => {
    return http({
        url: '/api/content.article/addHistory',
        method: 'POST', //请求方法
        data 
    })
}
export const delLookHistory= (data) => {
    return http({
        url: '/api/auth.user/delLookHistory',
        method: 'POST', //请求方法
        data 
    })
}
export const myhallInfo= (data) => {
    return http({
        url: '/api/auth.user/myhallInfo',
        method: 'GET', //请求方法
        data 
    })
}